<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import { companyInfoApi } from '@/feature/sys/infra/api/companyInfoApi'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: companyInfoApi,
        pagination: false,
        showSelection: false,
        columns: [
          {
            label: '标题',
            prop: 'title',
            searchable: true,
            // width: 'auto'
          },
          {
            label: '类型',
            prop: 'infoType',
            searchable: true,
            type: ColumnType.SELECT,

            options: [
              {
                label: '通知公告',
                value: 1
              },
              {
                label: '关于我们',
                value: 2
              }
            ]
          },
          {
            label: '内容',
            prop: 'content',
            span: 24,
            type: ColumnType.RICH_TEXTAREA,
            required: true,
            width: 'auto'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

